<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    class Person {
      constructor(name, age){
        this.name = name
        this.age = age
      }
      eat(){
        console.log(`${this.name}在吃鸡腿`)
      }
      run(){
        console.log(`${this.name}在公园跑步`)
      }
    }

    const man = new Person('张三', 18)
    // console.log(man)
    man.eat()

    const women = new Person('小丽', 20)
    // console.log(women)
    women.eat()

    console.log(man.eat === women.eat)
    console.log(Person.prototype)
  </script>
</body>
</html>